import curdIndex from '@/views/curd/index'

const indexMixin = {
  components: {
    curdIndex
  },
  props: {},
  methods: {
    // 刷新页面
    flush() {
      if (this.$refs.curd) {
        this.$refs.curd.onFlush()
      } else {
        console.warn(`${this.control}未设置ref`)
      }
    }
  }
}

export default indexMixin
